package com.lnsf.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.TableGenerator;



@Entity
@Table(name = "Category")
public class Category {
	@TableGenerator(
			name = "categorySeq",
			allocationSize = 1,
			initialValue = 1 ,
			pkColumnName = "Pk_name",
			pkColumnValue = "category_id",
			valueColumnName = "Pk_value"
		)
	@Id
	@GeneratedValue(strategy=GenerationType.TABLE , generator = "categorySeq")
	private Integer id;
	
	@Column(nullable=false)
	private String name;
	
	//'分类状态 0 正常 1 暂用'
	@Column(nullable=false)
	private Integer status;
	

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	@Override
	public String toString() {
		return "Category [id=" + id + ", name=" + name + ", status=" + status
				+ "]";
	}
	
	
	
}
